<div id="ad">
<?php 
if($GLOBALS['PAGE_DATA_BANNER_IMG'])
{
	if($GLOBALS['PAGE_DATA_BANNER_URL'])
	{
		printf('<a target="_blank" href="%s"><img title="%s" src="img/website/%s" width="924" height="180" /></a>',$GLOBALS['PAGE_DATA_BANNER_URL'],$GLOBALS['PAGE_DATA_BANNER_NAME'],$GLOBALS['PAGE_DATA_BANNER_IMG']);
	}else{
		printf('<img title="%s" src="img/website/%s" width="924" height="180" />',$GLOBALS['PAGE_DATA_BANNER_NAME'], $GLOBALS['PAGE_DATA_BANNER_IMG']);
	}
}else{
	//echo '<img src="img/topbanner.jpg" width="924" height="180" />';
}
?>
</div>